package com.example.testClass.easyExcelDemo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @author: tobed
 * @date: 2022/9/15
 * @time: 17:14
 */
@TableName(value = "user")
@Data
public class User implements Serializable {
    //@ExcelProperty:配置表头
    @ExcelProperty("主键")
    private String id;
    @ExcelProperty("姓名")
    private String yhxm;
    @ExcelProperty("性别")
    private String yhxb;
    @ExcelProperty("登陆账号")
    private String yhzh;
    @ExcelProperty("登陆密码")
    private String yhmm;
//    @ExcelProperty("出生年月")
//    private Date csrq;
}
